import  vue from "vue"
import  vuex from "vuex"
import mutations from "./mutations";
import actions from "./actions";
import getters from "./getters";
vue.use(vuex);

const  store=new vuex.Store({
  state:{
    productlist:[]
  },
  //mutations 目的就是修改vuex的状态 mutations中的每一个方法比较单一一点
  mutations,
  actions,
  getters,
})
export  default  store
